package com.zk.algorithm.bean;

public class DoubleListNode implements Element {

    private DoubleListNode pre;
    private DoubleListNode next;

    private int key;
    private int val;

    public DoubleListNode() {
    }

    public DoubleListNode(int key, int val) {
        this.key = key;
        this.val = val;
    }

    public DoubleListNode getPre() {
        return pre;
    }

    public void setPre(DoubleListNode pre) {
        this.pre = pre;
    }

    public DoubleListNode getNext() {
        return next;
    }

    public void setNext(DoubleListNode next) {
        this.next = next;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    @Override
    public int getVal() {
        return this.val;
    }
}
